import {defHttp} from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";

const { createConfirm } = useMessage();

enum Api {
  findSumMeal = '/baseinfo/cardOperation/findSumMeal',
  findSection = '/baseinfo/cardOperation/findSection',
  findDinnerRate = '/baseinfo/cardOperation/findDinnerRate',
  findNothaveMeals = '/baseinfo/cardOperation/findNothaveMeals',
  findSalePersonTooLowByDept = '/baseinfo/cardOperation/findSalePersonTooLowByDept',
  findOnLineList = '/baseinfo/cardOperation/findOnLineList',
}
/**
 * 列表接口
 * @param params
 */
export const findSumMealList = (params) =>{
 return defHttp.get({url: Api.findSumMeal, params});
}

export const findSection = (params) =>{
  return defHttp.get({url: Api.findSection, params});
}

export const findDinnerRate = (params) =>{
  return defHttp.get({url: Api.findDinnerRate, params});
}

export const findNothaveMeals = (params) =>{
  return defHttp.get({url: Api.findNothaveMeals, params});
}

export const findSalePersonTooLowByDept = (params) =>{
  return defHttp.get({url: Api.findSalePersonTooLowByDept, params});
}

export const findOnLineList = (params) =>{
  return defHttp.get({url: Api.findOnLineList, params});
}